//
//  ContentView.swift
//  SnapCube
//
//  Created by Mars on 2022/12/23.
//

import SwiftUI
/*
 Navigation - Jump among screens -> NavigationStack
 
 NavigationLink
 
 */
struct ContentView: View {
  var body: some View {
    NavigationStack {
      // TODO:
      // F / U / R colors
      makeMainScreen()
    }
  }
  
  func makeMainScreen() -> some View {
    VStack(spacing: 50) {
      Text("Welcome to SnapCube")
        .font(.largeTitle)
      
      Text("Image Cube")
        .frame(height: 300)
        .border(Color.brown, width: 2)
      
      // Button "Give it a try"
      // - action
      // - label
      NavigationLink("Give it a try", destination: GiveItATry())
      
      // Button "Go to pro mode"
      NavigationLink("Go to pro mode", destination: ProMode())
      
      
      Spacer()
      
      // About SnapCube
      Button(action: {
        
      }, label: {
        Text("About SnapCube")
          .font(.footnote)
      })
    }
    .padding()
  }
}


struct ContentView_Preview: PreviewProvider {
  static var previews: some View {
    ContentView()
  }
}
